package com.dhcc.core.modules.system.warpper;

import java.util.List;
import java.util.Map;

import com.dhcc.core.framework.base.warpper.BaseControllerWarpper;
import com.dhcc.core.framework.constant.state.ResourceStatus;
import com.dhcc.core.framework.constant.state.ResourceType;

/**
 * 菜单列表的包装类
 * 
 * @ClassName: ResourceWarpper
 * @Description: TODO
 * @author: cyf
 * @date: 2018年1月2日 上午10:43:43
 */
public class ResourceWarpper extends BaseControllerWarpper {

    public ResourceWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        map.put("statusName", ResourceStatus.valueOf((Integer) map.get("status")));
        map.put("resourceTypeName", ResourceType.valueOf((Integer) map.get("resType")));
    }

}
